home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Online / MagPLIP / source / rt.asm < prev    next >
Assembly Source File  |  1998-04-01  |  2KB  |  123 lines

  1. ;*
  2. ;*  $VER: rt.asm 1.3 (01 Apr 1998)
  3. ;*
  4. ;*  magplip.device - Parallel Line Internet Protocol
  5. ;*
  6. ;*  Original code written by Oliver Wagner and Michael Balzer.
  7. ;*
  8. ;*  This version has been completely reworked by Marius Gröger, introducing
  9. ;*  slight protocol changes. The new source is a lot better organized and
  10. ;*  maintainable.
  11. ;*
  12. ;*  Additional changes and code cleanup by Jan Kratochvil and Martin Mares.
  13. ;*  The new source is significantly faster and yet better maintainable.
  14. ;*
  15. ;*  (C) Copyright 1993-1994 Oliver Wagner & Michael Balzer
  16. ;*  (C) Copyright 1995 Jan Kratochvil & Martin Mares
  17. ;*  (C) Copyright 1995-1996 Marius Gröger
  18. ;*      All Rights Reserved
  19. ;*
  20. ;*  $HISTORY:
  21. ;*
  22. ;*  01 Apr 1998 : 001.003 :  integrated modifications for linPLIP from Stephane
  23. ;*  29 Mar 1996 : 001.002 :  changed copyright note
  24. ;*  20 Aug 1995 : 001.001 :  stub() MUST return 0 (jk/mm)
  25. ;*  12 Feb 1995 : 001.000 :  reworked original
  26. ;*
  27.  
  28. ;*
  29. ;* include files
  30. ;*
  31.     IFND EXEC_NODES_I
  32.     INCLUDE "exec/nodes.i"
  33.     ENDC
  34.     IFND EXEC_RESIDENT_I
  35.     INCLUDE "exec/resident.i"
  36.     ENDC
  37.     IFND EXEC_INITIALIZERS_I
  38.     INCLUDE "exec/initializers.i"
  39.     ENDC
  40.     IFND DOS_DOS_I
  41.     INCLUDE "dos/dos.i"
  42.     ENDC
  43.  
  44.     INCLUDE "magplip.i"
  45.  
  46. ; Revision informations
  47.     IFND LINPLIP
  48.     INCLUDE "magplip_rev.i"
  49.     ELSE
  50.     INCLUDE "linplip_rev.i"
  51.     ENDC
  52. ;*
  53. ;* imports
  54. ;*
  55.     xref  _DevInit
  56.  
  57.     xref  _DevOpen
  58.     xref  _DevClose
  59.     xref  _DevExpunge
  60.     xref  _DevExtFunc
  61.     xref  _DevBeginIO
  62.     xref  _DevAbortIO
  63.  
  64.     section "text",code
  65.  
  66.     moveq #RETURN_FAIL,d0
  67.     rts
  68.  
  69. romtag:
  70.     dc.w  RTC_MATCHWORD
  71.     dc.l  romtag
  72.     dc.l  endskip
  73.     dc.b  RTF_AUTOINIT
  74.     dc.b  VERSION
  75.     dc.b  NT_DEVICE
  76.     dc.b  0               ; priority
  77.     dc.l  devname
  78.     dc.l  devid
  79.     dc.l  inittable
  80.  
  81. devname:
  82.    IFND LINPLIP
  83.     dc.b "magplip.device",0
  84.    ELSE
  85.     dc.b "linplip.device",0
  86.    ENDC
  87.  
  88.     dc.b  0,'$VER: '
  89. devid:
  90.     VSTRING
  91.  
  92.     cnop 0,2
  93.  
  94. inittable:
  95.     dc.l  PLIPBase_SIZE
  96.     dc.l  functable,datatable,_DevInit
  97.  
  98. functable:
  99.     dc.l  _DevOpen
  100.     dc.l  _DevClose
  101.     dc.l  _DevExpunge
  102.     dc.l  stub
  103.     dc.l  _DevBeginIO
  104.     dc.l  _DevAbortIO
  105.     dc.l  -1
  106.  
  107. datatable:
  108.     INITBYTE LN_TYPE,NT_DEVICE
  109.     INITLONG LN_NAME,devname
  110.     INITBYTE LIB_FLAGS,LIBF_SUMUSED!LIBF_CHANGED
  111.     INITWORD LIB_VERSION,VERSION
  112.     INITWORD LIB_REVISION,REVISION
  113.     INITLONG LIB_IDSTRING,devid
  114.     dc.w  0
  115.  
  116. stub:
  117.     moveq #0,d0
  118.     rts
  119.  
  120. endskip:
  121.  
  122.     END
  123.